package com.fcscs.cservice.ws.client.reservationservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.reservationservice.GetFolioRequest;
import com.fcscs.cservice.ws.schema.reservationservice.GetFolioResponse;

public class GetFolioClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetFolioClient.class);

	public GetFolioResponse getFolio(GetFolioRequest req) {
		GetFolioResponse resp = (GetFolioResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getFolioView().getBillings().size());
		return resp;
	}

}
